# app/steps/my_map.rb
#
class SkipIfMap
  include StairMaster::WorkflowMap

  ## Define the steps -------------------------------------
  step :step_one,   "Step 1", route_to: :skip_if_step_one_path
  step :step_two,   "Step 2", route_to: :skip_if_step_two_path
  step :step_three, "Step 3", route_to: :skip_if_step_three_path

  ## Define the order -------------------------------------
  order :step_one, :step_two, :step_three

  ## Define rules -----------------------------------------
  rule for: :step_one,    action: :skip, if: :skip_step_one?
  rule for: :step_two,    action: :skip, if: :skip_step_two?
  rule for: :step_three,  action: :skip, if: :skip_step_three?
end
